package com.forum.Mapper;

import com.forum.Entity.Topic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TopicMapper {
    List<Topic> getTopicList(@Param("topicName") String topicName);

    void addTopic(Topic topic);

    void updateTopic(Topic topic);

    void deleteTopic(String topicId);

    List<Topic> getTopicLists();

    List<Topic> getTopicListByThree(String topicName, String username);
}
